home *** CD-ROM | disk | FTP | other *** search
- #!/sbin/sh
- #Tag 0x00000f00
-
- # Start or stop the PeoplePages server daemon
- # "$Revision: 1.4 $"
-
- IS_ON=/sbin/chkconfig
- EXE=/usr/etc/ppagesd
- PROG=ppagesd
- OPTIONS=/etc/config/${PROG}.options
-
- if $IS_ON verbose ; then
- ECHO=echo
- else
- ECHO=:
- fi
-
- case "$1" in
- 'start')
- /sbin/killall $PROG
- if $IS_ON $PROG && test -x $EXE; then
- if [ -r ${OPTIONS} ] ; then
- while read path name
- do
- $EXE $path $name
- $ECHO "PeoplePages daemon: ${PROG}."
- done < ${OPTIONS}
- else
- echo PeoplePages daemon: config file "${OPTIONS}" not found
- fi
- fi
- ;;
-
- 'stop')
- /sbin/killall $PROG
- ;;
-
- *)
- echo "usage: $0 {start|stop}"
- ;;
- esac
-